//
//  RACCommand+SLB.m
//  Pods
//
//  Created by Bob Wu on 2017/7/14.
//
//

#import "RACCommand+SLB.h"
#import <objc/runtime.h>

@implementation RACCommand (SLB)

static char kAssociatedObjectKey_BLock;
- (void)setBlock:(TestBlock )argv {
    objc_setAssociatedObject(self, &kAssociatedObjectKey_BLock, argv, OBJC_ASSOCIATION_COPY_NONATOMIC);
}

- (TestBlock )block {
    return (TestBlock)objc_getAssociatedObject(self, &kAssociatedObjectKey_BLock);
}

@end
